<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title">项目信息</h4>
</div>

<div class="modal-body">
    <form role="form" class="validator_form" action="{:url('/Index/baseproject/add')}" id="addProjectForm" method="post">

        <div class="box-body">

            <div class="form-group">
                <label>项目名称</label>
                <input type="text" name="title" class="form-control" id="title" required placeholder="项目名称">
            </div>
            <div class="form-group">
                <label>项目类型</label>
                <select class="form-control" name="p_type">
                                <option value="">请选择</option>
                                    {volist name="code_list" id="vo" }                       
                                    <option value="{$vo['m_value']}">{$vo['m_name']}</option>
                                    {/volist}                           
                            </select>

            </div>
            <div class="form-group">
                <label>总包单位</label>
                <select class="form-control" name="company_id">
                                <option value="">请选择</option>
                                    {volist name="zb_list" id="vo" }                       
                                    <option value="{$vo['id']}">{$vo['name']}</option>
                                    {/volist}                           
                            </select>

            </div>
            <div class="form-group">
                <label>业主单位</label>

                <select class="form-control" name="owner_id">
                                <option value="">请选择</option>
                                    {volist name="yz_list" id="vo" }                       
                                    <option value="{$vo['id']}">{$vo['name']}</option>
                                    {/volist}                           
                            </select>

            </div>
            <div class="form-group">
                <label>项目经理</label>
                <select class="form-control" name="pm_uid">
                            <option value="">请选择</option>
                                {volist name="users" id="vo" }                       
                                <option value="{$vo['id']}">{$vo['nickname']}</option>
                                {/volist}                           
                        </select>

            </div>
            <div class="form-group">
                <label>市场人员</label>
                <select class="form-control" name="market_id">
                            <option value="">请选择</option>
                                {volist name="users" id="vo" }                       
                                <option value="{$vo['id']}">{$vo['nickname']}</option>
                                {/volist}                           
                        </select>

            </div>
            <div class="form-group">
                <label>合同时间</label>
                <input type="text" name="pact_time" class="form-control datepicker" id="datepicker" required placeholder="合同时间">
            </div>
            <div class="form-group">
                <label>合同工期</label>
                <input type="text" name="day" class="form-control" id="day" required data-bv-integer="true" placeholder="合同工期">
            </div>

            <div class="form-group">
                <label>项目金额</label>
                <input type="text" name="price" class="form-control" id="price" required data-bv-numeric="true" placeholder="项目金额">
            </div>

        </div>

        <div class="box-footer">
            <button type="submit" class="btn btn-primary">确认</button>
        </div>


    </form>
</div>

<script>
    $('.datepicker').datepicker({
        language: 'zh-CN',
        autoclose: true
    });
    ajax_form_submit("addProjectForm");
</script>